$(function() {
	$("#tree").dynatree({
		checkbox : true,
		selectMode : 3,
		onActivate : function(node) {
			alert("You activated " + node.data.title);
		},
		persist : true,
		children : [ {
			title : "北京",
			isFolder : true,
			children : [ {
				title : "北京市",
				isFolder : true,
				children : [ {
					title : "海淀区"
				}, {
					title : "东城区"
				}, {
					title : "西城区"
				}, {
					title : "朝阳区"
				}, ]
			}, ]
		}, {
			title : "上海",
			isFolder : true,
			children : [ {
				title : "上海市",
				isFolder : true,
				children : [ {
					title : "黄浦区"
				}, {
					title : "徐汇区"
				}, {
					title : "长宁区"
				}, {
					title : "静安区"
				}, ]
			}, ]
		}, ]
	});
});